package com.hyj.dev.res.proxy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author HeYuJie
 * @date 2023/2/17
 */
@Data
@Component
@ConfigurationProperties(prefix = "app")
public class AppProperties {

    /**
     * 缓存的目录
     */
    private String basePath = "./cache";

    private int timeout = 120;

    private List<ProxyRule> proxyRules = new ArrayList<>();


}
